<?php get_header(); ?>
	<?php get_sidebar(); ?>
	<div class="grid_9 omega right-column">
		<div class="portfolio-page">
		<div class="container-page-portfolio">
			<?php include (TEMPLATEPATH . '/category-menu.php' ); ?>
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<div <?php post_class('box') ?> id="post-<?php the_ID(); ?>">
					<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
					
					<div class="content">
						<?php 
						
						if(has_post_thumbnail()){
						// Get thumbnail
						$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
						
						}
						else {
							// Get first image, see functions.php to reference
							$url = get_first_image();
						}
						?>
							<img class="" src="<?php bloginfo('stylesheet_directory'); ?>/scripts/timthumb.php?src=<?php echo $url ?>&amp;h=90&amp;w=275&amp;zc=1" alt="<?php the_title(); ?>" />
						<?php
						
						the_excerpt(); 
						?>
					</div>
					
					<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
					<!--
					<div class="under">
						<span><span class="categories">Categories: </span><?php the_category(', ') ?></span>
						<span></span>
					</div>
					
					
					<div class="postmetadata">
						<?php the_tags('Tags: ', ', ', '<br />'); ?>
						Posted in <?php the_category(', ') ?> | 
						<?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
					</div>
					
					-->
					
					<div class="fixed"></div>
				</div>
			<?php endwhile; ?>
			<div class="fixed"></div>
			<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
			<?php else : ?>
				<h2>Not Found</h2>
			<?php endif; ?>

		</div>
		</div>
		<div class="portfolio-bottom-bg" />
	</div>

<?php get_footer(); ?>